package com.wcy.service;

import com.wcy.domain.SysMenu;
import com.wcy.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wcy.model.RolePrivilegesParam;

import java.util.List;

/**
 * <p>Title:SysRolePrivilegeService.java</p >
 * <p>Description: </p >
 * <p>Copyright: 公共服务与应急管理战略业务本部 Copyright(c)2020</p >
 * <p>Date:2021/9/18 22:14</p >
 *
 * @author wcy (wangchaoyanga@mail.taiji.com.cn)
 * @version 1.0
 */
public interface SysRolePrivilegeService extends IService<SysRolePrivilege> {

    /**
     * 查询角色的权限
     * @param roleId
     * @return
     */
    List<SysMenu> findSysMenAndPrivileges(Long roleId);

    /**
     * 给角色授予权限
     * @param rolePrivilegesParam
     * @return
     */
    boolean grantPrivileges(RolePrivilegesParam rolePrivilegesParam);
}
